//
//  Messages.h
//  QQ聊天
//
//  Created by 伍银荣 on 2021/6/5.
//  Copyright © 2021 com.example. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    MessagesTypeMe = 0,
    MessagesTypeOther = 1
}MessagesType;

NS_ASSUME_NONNULL_BEGIN

@interface Messages : NSObject

@property (nonatomic, copy) NSString *time;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, assign) MessagesType type;

- (instancetype)initWithDictionary:(NSDictionary *)dict;
+ (instancetype)messagesWithDictionary:(NSDictionary *)dict;


@end

NS_ASSUME_NONNULL_END
